package com.huangpf.util.annotation;

/**
 * Created by Administrator on 2016/7/27.
 */
public class Apple {

    @FruitName(value = "苹果")
    private String appleName;

    @FruitColor(fruitColor = FruitColor.Color.RED)
    private String appleColor;

    public Apple(){

    }

    public void setAppleColor(String appleColor) {
        this.appleColor = appleColor;
    }

    public String getAppleColor() {
        return appleColor;
    }


    public void setAppleName(String appleName) {
        this.appleName = appleName;
    }

    public String getAppleName() {
        return appleName;
    }

    public void displayName() {
        System.out.println("水果的名字是：" + getAppleName());
    }

}
